import React, {Component} from 'react';
import {Route, Switch} from 'react-router-dom';
import GovermentIndex from './government_index';
import GovermentDetail from './government_details';

export default class Government extends Component {
    onChange(a, b) {
        alert("第" + a + "页，每页数据是" + b + "条");
    }

    render() {
        return (
            <div className="education-set-goverment">
                <div className="education-set row">
                    <div className="text-center">
                        <h2>政策法规</h2>
                        <div className="welding-set-gutter-line">
                            <hr/>
                            <span/>
                            <hr/>
                        </div>
                        <h3>POLICIES REGULATIONS</h3></div>
                </div>
                <Switch>
                    <Route path="/goverment" exact component={GovermentIndex}/>
                    <Route path="/goverment/detail" exact component={GovermentDetail}/>
                </Switch>
            </div>
        );
    }
}